package com.cathyjava.easyflows.work;

import com.sun.source.doctree.SeeTree;

import java.util.Map;
import java.util.Set;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author chenjing
 * @date 2021/5/7
 */
public class WorkContext {
    //线程安全
    private Map<String, Object> context = new ConcurrentHashMap<>();

    public void put(String key, Object value) {
        this.context.put(key, value);
    }

    public Object get(String key) {
        return this.context.get(key);
    }

    public Set<Map.Entry<String, Object>> getEntrySet() {
        return this.context.entrySet();
    }
}
